package com.emser.unc.client.event;

import com.emser.unc.client.service.CustomerServiceAsync;
import com.google.gwt.event.shared.GwtEvent;

public class AddCustomerEvent extends GwtEvent<AddCustomerEventHandler> {
	public static Type<AddCustomerEventHandler> TYPE = new Type<AddCustomerEventHandler>();

	private CustomerServiceAsync customerServiceAsync;
	
	public AddCustomerEvent(CustomerServiceAsync rpcCustomerService){
		this.customerServiceAsync =rpcCustomerService;
		
	}
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AddCustomerEventHandler> getAssociatedType() {
		return TYPE;
	}
	@Override
	protected void dispatch(AddCustomerEventHandler handler) {
		handler.onAdd(this);
		
	}
	public CustomerServiceAsync getRPCserviceCustomer(){
		return customerServiceAsync;	
	}
	

}
